find the range of a list of numbers